window.importData = function(fileType, content) {
  return new Promise(function(resolve, reject) {
    editor.minder.importData(fileType, content).then(content => {
      resolve(content);
    });
  });
};

window.exportData = function(exportType) {
  return new Promise(function(resolve, reject) {
    editor.minder.exportData(exportType).then(content => {
      resolve(content);
    });
  });
};
